<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
	<table class="cntable table table-bordered dataTable table-employee ">
		<thead>
			<tr>
				<th style="width:50px">序号</th>			
				<th style="width:80px">采购单号</th>
				<th style="width:60px">供应商</th>
				<th style="width:50px">采购数</th>
				<th style="width:50px">采购金额</th>
				
				<th style="width:60px">采购员</th>
				<th style="width:60px">制单人</th>
				<th style="width:60px">采购时间</th>
				<th style="width:60px">入库状态</th>
				<th style="width:60px">入库明细</th>

				<th style="width:60px">备注</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach var="purchase" items="${purchases}" varStatus="status">
			<tr style="height:45px" data-id="${purchase.purchaseId}" data-purchaseState="${purchase.purchaseState }">
				
				<td>${status.index+1 }</td>
				<td>${purchase.purchaseNo }</td>
				<td>${purchase.supplier.supplierName }</td>
				<td>${purchase.purchaseNum }</td>
				<td><fmt:formatNumber value="${purchase.purchaseMoney }" pattern="0.00"></fmt:formatNumber></td>
				
				<td>${purchase.purchaseName }</td>
				<td id="allMoney">${purchase.createUserName}</td>
				<td>
					<fmt:formatDate value="${purchase.createDate}" type="date" dateStyle="default" pattern="YY-MM-dd HH:mm"/>
				</td>
				<td style="color:#8c8c00">
					<t:provider packageName="purchase" enumClassName="PurchaseState" value="${purchase.purchaseState }"/>
				</td>
				<td>
					<button type="button" onclick="seeInStock('${purchase.purchaseId}','${purchase.purchaseState}')" class="btn btn-success btn-sm" data-placement="bottom"   title="决策人 信息" data-html="true">明细<i class="icon-eye"></i></button>
				</td>
			
				
				<td>
					${purchase.comment }
				</td>
			</tr>
			</c:forEach>
			
		</tbody>
		<tfoot >
			<tr>
				<th class="pager-th">
					<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
				</th>
			</tr>
		</tfoot>
	</table>
<script type="text/javascript">

$(function() {

	/* $('[data-popup=popover-custom]').popover({
		template: '<div style="widht:400px;" class="popover border-teal-400"><div class="arrow"></div><h3 class="popover-title bg-teal-400"></h3><div class="popover-content" style="width:400px;height:400px;"></div></div>',
		//content:'<tabel class="table table-bordered"> <tr><td>姓名：&nbsp&nbsp&nbsp</td><td>${project.projectStatus}</td><br><td >电话：&nbsp&nbsp&nbsp</td><td>13071273996</td></tr><br><tr><td>职务：&nbsp&nbsp&nbsp</td><td>市长</td><br><td style="width:50px">办公地址：&nbsp&nbsp&nbsp</td><td>武汉</td></tr></tabel>'
	}); */

});


</script>
